#pragma once
#include "WindowDataGrabber.h"
#include "TableParser.h"
#include "AiPlayer.h"


class DataReceiver: public IScreenShotReceiver
{
	CString Caption;
	int Pos;
	int OldPos;
	bool AutoPlay;

	BOOL StoreBitmapFile(LPCTSTR lpszFileName, HBITMAP HBM);


public:
	DataReceiver() { Pos = -1; OldPos = -1; AutoPlay = false; Window = 0;}
	TableParser TP;
	AiPlayer	Bot;
	CBotCore	BC;
	HWND		Window;

	void SetWindow(HWND iHwnd) { Window = iHwnd; } 
	void SetAutoPlay(bool iAutoPlay) { AutoPlay = iAutoPlay; }
	void SetPos(int iPos) { OldPos = Pos; Pos = iPos;}
	virtual void ReceiveScreenShot(HBITMAP iBitmapId);
	virtual void ReceiveCaption(TCHAR *iCaption);
};
